home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / SetMouse.c < prev    next >
MacBinary  |  1993-02-23  |  2.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Feb 23 02:08:24 1993, modified Tue Feb 23 02:08:24 1993, creator Think C, type ASCII, 1820 bytes "SetMouse.c" , at 0x79c 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 65 74 4d 6f 75 | 73 65 2e 63 00 00 00 00 |..SetMou|se.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 07 1c 00 | 00 01 7e a7 af 7d e8 a7 |........|..~..}..|
|00000060| af 7d e8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e5 a9 00 00 |........|........|
|00000080| 2f 2a 0d 53 65 74 4d 6f | 75 73 65 2e 63 0d 32 2f |/*.SetMo|use.c.2/|
|00000090| 32 35 2f 39 31 20 64 67 | 70 0d 0d 46 72 6f 6d 20 |25/91 dg|p..From |
|000000a0| 22 43 6f 64 65 20 67 61 | 64 67 65 74 73 3a 20 53 |"Code ga|dgets: S|
|000000b0| 65 74 74 69 6e 67 20 74 | 68 65 20 6d 6f 75 73 65 |etting t|he mouse|
|000000c0| 20 6c 6f 63 61 74 69 6f | 6e 22 2c 20 54 48 49 4e | locatio|n", THIN|
|000000d0| 4b 69 6e 27 20 43 61 50 | 2c 20 31 28 32 29 3a 32 |Kin' CaP|, 1(2):2|
|000000e0| 38 2d 32 39 2c 20 46 61 | 6c 6c 20 31 39 39 30 0d |8-29, Fa|ll 1990.|
|000000f0| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 31 39 39 31 |Copyrigh|t . 1991|
|00000100| 20 53 50 4c 41 73 68 20 | 52 65 73 6f 75 72 63 65 | SPLAsh |Resource|
|00000110| 73 2e 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |s. All r|ights re|
|00000120| 73 65 72 76 65 64 2e 0d | 2a 2a 20 52 65 73 74 72 |served..|** Restr|
|00000130| 69 63 74 69 6f 6e 73 20 | 2a 2a 0d 0d 54 68 69 73 |ictions |**..This|
|00000140| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 69 73 20 | source |code is |
|00000150| 63 6f 70 79 72 69 67 68 | 74 65 64 2c 20 62 75 74 |copyrigh|ted, but|
|00000160| 20 66 72 65 65 2e 20 54 | 68 69 73 20 6d 65 61 6e | free. T|his mean|
|00000170| 73 20 74 68 61 74 20 70 | 72 6f 67 72 61 6d 6d 65 |s that p|rogramme|
|00000180| 72 73 20 6d 61 79 20 75 | 73 65 20 74 68 65 20 63 |rs may u|se the c|
|00000190| 6f 64 65 0d 61 6e 64 20 | 69 6e 63 6f 72 70 6f 72 |ode.and |incorpor|
|000001a0| 61 74 65 20 69 74 20 69 | 6e 74 6f 20 74 68 65 69 |ate it i|nto thei|
|000001b0| 72 20 6f 77 6e 20 70 72 | 6f 67 72 61 6d 73 20 28 |r own pr|ograms (|
|000001c0| 63 6f 6d 6d 65 72 63 69 | 61 6c 20 6f 72 20 6f 74 |commerci|al or ot|
|000001d0| 68 65 72 77 69 73 65 29 | 0d 77 69 74 68 6f 75 74 |herwise)|.without|
|000001e0| 20 70 61 79 6d 65 6e 74 | 20 6f 66 20 61 6e 79 20 | payment| of any |
|000001f0| 66 65 65 73 2e 20 48 6f | 77 65 76 65 72 2c 20 74 |fees. Ho|wever, t|
|00000200| 68 65 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 69 |he sourc|e code i|
|00000210| 74 73 65 6c 66 20 6d 61 | 79 20 6e 6f 74 0d 62 65 |tself ma|y not.be|
|00000220| 20 73 6f 6c 64 20 6f 72 | 20 64 69 73 74 72 69 62 | sold or| distrib|
|00000230| 75 74 65 64 20 6f 6e 20 | 65 6c 65 63 74 72 6f 6e |uted on |electron|
|00000240| 69 63 20 62 75 6c 6c 65 | 74 69 6e 20 62 6f 61 72 |ic bulle|tin boar|
|00000250| 64 20 73 65 72 76 69 63 | 65 73 20 77 69 74 68 6f |d servic|es witho|
|00000260| 75 74 0d 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ut.writt|en permi|
|00000270| 73 73 69 6f 6e 20 66 72 | 6f 6d 20 53 50 4c 41 73 |ssion fr|om SPLAs|
|00000280| 68 20 52 65 73 6f 75 72 | 63 65 73 2e 0d 0d 53 50 |h Resour|ces...SP|
|00000290| 4c 41 73 68 20 52 65 73 | 6f 75 72 63 65 73 0d 31 |LAsh Res|ources.1|
|000002a0| 36 37 38 20 53 68 61 74 | 74 75 63 6b 20 41 76 65 |678 Shat|tuck Ave|
|000002b0| 20 23 33 30 32 0d 42 65 | 72 6b 65 6c 65 79 2c 20 | #302.Be|rkeley, |
|000002c0| 43 41 20 20 39 34 37 30 | 39 0d 28 34 31 35 29 20 |CA 9470|9.(415) |
|000002d0| 35 32 37 2d 30 31 32 32 | 0d 0d 20 2a 09 53 65 74 |527-0122|.. *.Set|
|000002e0| 74 69 6e 67 20 74 68 65 | 20 6d 6f 75 73 65 20 6c |ting the| mouse l|
|000002f0| 6f 63 61 74 69 6f 6e 0d | 20 2a 09 09 4d 6f 76 65 |ocation.| *..Move|
|00000300| 20 74 68 65 20 6d 6f 75 | 73 65 20 6c 6f 63 61 74 | the mou|se locat|
|00000310| 69 6f 6e 20 74 6f 20 74 | 68 65 20 67 69 76 65 6e |ion to t|he given|
|00000320| 20 6c 6f 63 61 74 69 6f | 6e 2c 20 77 68 69 63 68 | locatio|n, which|
|00000330| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | is spec|ified in|
|00000340| 20 74 68 65 0d 20 2a 09 | 09 6c 6f 63 61 6c 20 63 | the. *.|.local c|
|00000350| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|00000360| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|00000370| 70 6f 72 74 0d 20 2a 0d | 20 2a 09 09 57 41 52 4e |port. *.| *..WARN|
|00000380| 49 4e 47 3a 20 49 6e 20 | 74 68 65 20 51 20 26 20 |ING: In |the Q & |
|00000390| 41 20 53 74 61 63 6b 2c | 20 41 70 70 6c 65 20 74 |A Stack,| Apple t|
|000003a0| 65 6c 6c 73 20 79 6f 75 | 20 68 6f 77 20 74 6f 20 |ells you| how to |
|000003b0| 64 6f 20 74 68 69 73 2c | 20 62 75 74 20 77 61 72 |do this,| but war|
|000003c0| 6e 73 0d 20 2a 09 09 09 | 74 68 61 74 20 74 68 65 |ns. *...|that the|
|000003d0| 20 74 65 63 68 6e 69 71 | 75 65 20 75 73 65 73 20 | techniq|ue uses |
|000003e0| 75 6e 64 6f 63 75 6d 65 | 6e 74 65 64 20 6c 6f 77 |undocume|nted low|
|000003f0| 2d 6d 65 6d 6f 72 79 20 | 6c 6f 63 61 74 69 6f 6e |-memory |location|
|00000400| 73 20 74 68 61 74 20 61 | 72 65 0d 20 2a 09 09 09 |s that a|re. *...|
|00000410| 63 6f 6e 73 69 64 65 72 | 65 64 20 75 6e 73 75 70 |consider|ed unsup|
|00000420| 70 6f 72 74 65 64 20 61 | 6e 64 20 76 6f 6c 61 74 |ported a|nd volat|
|00000430| 69 6c 65 20 61 6e 64 20 | 6d 61 79 20 63 68 61 6e |ile and |may chan|
|00000440| 67 65 20 69 6e 20 66 75 | 74 75 72 65 20 43 50 55 |ge in fu|ture CPU|
|00000450| 73 0d 0d 48 49 53 54 4f | 52 59 3a 0d 38 2f 32 34 |s..HISTO|RY:.8/24|
|00000460| 2f 39 31 09 64 67 70 09 | 4d 61 64 65 20 63 6f 6d |/91.dgp.|Made com|
|00000470| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 54 48 49 |patible |with THI|
|00000480| 4e 4b 20 43 20 35 2e 30 | 2e 0d 2a 2f 0d 23 69 6e |NK C 5.0|..*/.#in|
|00000490| 63 6c 75 64 65 20 22 56 | 69 64 65 6f 54 6f 6f 6c |clude "V|ideoTool|
|000004a0| 62 6f 78 2e 68 22 0d 0d | 23 69 66 20 54 48 49 4e |box.h"..|#if THIN|
|000004b0| 4b 5f 43 3d 3d 31 09 2f | 2a 20 6f 6c 64 20 76 65 |K_C==1./|* old ve|
|000004c0| 72 73 69 6f 6e 20 2a 2f | 0d 09 65 78 74 65 72 6e |rsion */|..extern|
|000004d0| 09 50 6f 69 6e 74 09 4d | 54 65 6d 70 09 09 3a 09 |.Point.M|Temp..:.|
|000004e0| 30 78 38 32 38 3b 09 09 | 2f 2a 20 4c 6f 77 20 6d |0x828;..|/* Low m|
|000004f0| 65 6d 6f 72 79 20 67 6c | 6f 62 61 6c 73 20 2a 2f |emory gl|obals */|
|00000500| 0d 09 65 78 74 65 72 6e | 09 50 6f 69 6e 74 09 52 |..extern|.Point.R|
|00000510| 61 77 4d 6f 75 73 65 09 | 3a 09 30 78 38 32 43 3b |awMouse.|:.0x82C;|
|00000520| 0d 09 65 78 74 65 72 6e | 09 42 79 74 65 09 43 72 |..extern|.Byte.Cr|
|00000530| 73 72 4e 65 77 09 09 3a | 09 30 78 38 43 45 3b 0d |srNew..:|.0x8CE;.|
|00000540| 09 65 78 74 65 72 6e 09 | 42 79 74 65 09 43 72 73 |.extern.|Byte.Crs|
|00000550| 72 43 6f 75 70 6c 65 09 | 3a 09 30 78 38 43 46 3b |rCouple.|:.0x8CF;|
|00000560| 0d 23 65 6c 73 65 0d 09 | 23 69 6e 63 6c 75 64 65 |.#else..|#include|
|00000570| 20 3c 53 79 73 45 71 75 | 2e 68 3e 0d 09 23 64 65 | <SysEqu|.h>..#de|
|00000580| 66 69 6e 65 20 4d 54 65 | 6d 70 20 28 2a 28 50 6f |fine MTe|mp (*(Po|
|00000590| 69 6e 74 20 2a 29 4d 54 | 65 6d 70 29 0d 09 23 64 |int *)MT|emp)..#d|
|000005a0| 65 66 69 6e 65 20 52 61 | 77 4d 6f 75 73 65 20 28 |efine Ra|wMouse (|
|000005b0| 2a 28 50 6f 69 6e 74 20 | 2a 29 52 61 77 4d 6f 75 |*(Point |*)RawMou|
|000005c0| 73 65 29 0d 09 23 64 65 | 66 69 6e 65 20 43 72 73 |se)..#de|fine Crs|
|000005d0| 72 4e 65 77 20 28 2a 28 | 42 79 74 65 20 2a 29 43 |rNew (*(|Byte *)C|
|000005e0| 72 73 72 4e 65 77 29 0d | 09 23 64 65 66 69 6e 65 |rsrNew).|.#define|
|000005f0| 20 43 72 73 72 43 6f 75 | 70 6c 65 20 28 2a 28 42 | CrsrCou|ple (*(B|
|00000600| 79 74 65 20 2a 29 43 72 | 73 72 43 6f 75 70 6c 65 |yte *)Cr|srCouple|
|00000610| 29 0d 23 65 6e 64 69 66 | 0d 0d 76 6f 69 64 20 53 |).#endif|..void S|
|00000620| 65 74 4d 6f 75 73 65 28 | 50 6f 69 6e 74 09 6d 6f |etMouse(|Point.mo|
|00000630| 75 73 65 4c 6f 63 29 0d | 7b 0d 09 4c 6f 63 61 6c |useLoc).|{..Local|
|00000640| 54 6f 47 6c 6f 62 61 6c | 28 26 6d 6f 75 73 65 4c |ToGlobal|(&mouseL|
|00000650| 6f 63 29 3b 09 09 09 09 | 2f 2a 20 43 6f 6e 76 65 |oc);....|/* Conve|
|00000660| 72 74 20 70 6f 69 6e 74 | 20 74 6f 20 67 6c 6f 62 |rt point| to glob|
|00000670| 61 6c 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 09 2a |al coord|inates.*|
|00000680| 2f 0d 09 0d 09 09 2f 2a | 20 51 75 6f 74 69 6e 67 |/...../*| Quoting|
|00000690| 20 66 72 6f 6d 20 74 68 | 65 20 51 20 26 20 41 20 | from th|e Q & A |
|000006a0| 53 74 61 63 6b 3a 20 22 | 49 66 20 79 6f 75 20 77 |Stack: "|If you w|
|000006b0| 69 73 68 20 74 6f 20 70 | 6c 61 63 65 20 74 68 65 |ish to p|lace the|
|000006c0| 20 63 75 72 73 6f 72 20 | 69 6e 20 61 6e 09 2a 2f | cursor |in an.*/|
|000006d0| 0d 09 09 2f 2a 20 61 62 | 73 6f 6c 75 74 65 20 6c |.../* ab|solute l|
|000006e0| 6f 63 61 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 73 |ocation |on the s|
|000006f0| 63 72 65 65 6e 2c 20 79 | 6f 75 20 6d 75 73 74 20 |creen, y|ou must |
|00000700| 73 65 74 20 52 61 77 4d | 6f 75 73 65 2c 20 61 6e |set RawM|ouse, an|
|00000710| 64 20 4d 54 65 6d 70 20 | 74 6f 09 2a 2f 0d 09 09 |d MTemp |to.*/...|
|00000720| 2f 2a 20 74 68 65 20 73 | 61 6d 65 20 76 61 6c 75 |/* the s|ame valu|
|00000730| 65 2c 20 61 6e 64 20 73 | 65 74 20 43 72 73 72 4e |e, and s|et CrsrN|
|00000740| 65 77 20 74 6f 20 74 68 | 65 20 73 61 6d 65 20 76 |ew to th|e same v|
|00000750| 61 6c 75 65 20 61 73 20 | 43 72 73 72 43 6f 75 70 |alue as |CrsrCoup|
|00000760| 6c 65 2e 22 09 2a 2f 0d | 09 09 0d 09 4d 54 65 6d |le.".*/.|....MTem|
|00000770| 70 3d 52 61 77 4d 6f 75 | 73 65 3d 6d 6f 75 73 65 |p=RawMou|se=mouse|
|00000780| 4c 6f 63 3b 0d 09 43 72 | 73 72 4e 65 77 3d 43 72 |Loc;..Cr|srNew=Cr|
|00000790| 73 72 43 6f 75 70 6c 65 | 3b 0d 7d 0d 00 00 00 00 |srCouple|;.}.....|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000810| 15 a7 20 9e f2 e1 c8 f9 | b9 18 87 23 1e 74 5c f2 |.. .....|...#.t\.|
|00000820| fa 61 92 3e 40 f3 d9 3a | 66 fc 7e 33 7f 6a ce 8a |.a.>@..:|f.~3.j..|
|00000830| 0a 53 65 74 4d 6f 75 73 | 65 2e 63 6f 02 00 00 00 |.SetMous|e.co....|
|00000840| 54 45 58 54 4b 41 48 4c | 00 00 00 00 00 00 00 00 |TEXTKAHL|........|
|00000850| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 a7 e5 d5 cc 00 00 | 00 00 00 00 01 7e 6c 4c |........|.....~lL|
|00000880| 29 7d 2e 5d 69 5b 64 e2 | 25 88 08 07 a9 b1 45 96 |)}.]i[d.|%.....E.|
|00000890| a8 95 3d bc a3 7c 44 46 | 87 0a 63 58 b8 93 c9 c2 |..=..|DF|..cX....|
|000008a0| f4 57 a5 7a 2a df b9 7e | fe d7 29 a5 31 1e da 3c |.W.z*..~|..).1..<|
|000008b0| d3 5c 36 9e d9 27 b4 9d | 37 42 8b 5a 11 6f 7e b4 |.\6..'..|7B.Z.o~.|
|000008c0| aa 81 e9 f6 3c 44 cf b0 | b3 a1 bc 79 01 49 db 57 |....<D..|...y.I.W|
|000008d0| 3b 5d b0 e0 ed af 88 51 | f3 89 93 f9 8a 92 d8 9d |;].....Q|........|
|000008e0| cb b9 9d a6 d1 22 3f 7a | ab ca da 23 71 6b f0 fd |....."?z|...#qk..|
|000008f0| 0a 78 1b 07 a7 7c 3f 3f | b0 c5 ae 44 87 97 82 ed |.x...|??|...D....|
|00000900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 7c |........|.......||
|00000920| 38 32 43 3b 0d 09 00 06 | 00 04 00 b6 00 2c 01 b6 |82C;....|.....,..|
|00000930| 02 6c 00 b6 00 2c 01 b6 | 02 6c a4 aa 9c 87 00 00 |.l...,..|.l......|
|00000940| 04 b7 00 00 04 b7 00 00 | 02 f8 01 00 00 00 01 00 |........|........|
|00000950| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 5d 6f a8 |...L...L|...2.]o.|
|00000960| 07 b8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000970| 00 0a 03 ed ff ff 00 00 | 00 00 00 5f 6b 98 00 00 |........|..._k...|
+--------+-------------------------+-------------------------+--------+--------+